import request from '@/utils/request'

// 查询持仓咨询列表
export function listStockinquery(query) {
  return request({
    url: '/stock/stockinquery/list',
    method: 'get',
    params: query
  })
}

// 查询持仓咨询详细
export function getStockinquery(id) {
  return request({
    url: '/stock/stockinquery/' + id,
    method: 'get'
  })
}

// 新增持仓咨询
export function addStockinquery(data) {
  return request({
    url: '/stock/stockinquery',
    method: 'post',
    data: data
  })
}

// 修改持仓咨询
export function updateStockinquery(data) {
  return request({
    url: '/stock/stockinquery',
    method: 'put',
    data: data
  })
}

// 删除持仓咨询
export function delStockinquery(id) {
  return request({
    url: '/stock/stockinquery/' + id,
    method: 'delete'
  })
}
